-- GENERATED SPELL FOR [Overseer Seylanna] --


function spell0_20397(pUnit, Event) --@Crystal Charge,n/a--
pUnit:FullCastSpellOnTarget(36179,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20397', 2000, 1)
end

function spell1_20397(pUnit, Event) --@Welding Beam,n/a--
pUnit:FullCastSpellOnTarget(35919,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20397', 5000, 1)
end

function Sorts_20397(pUnit, Event)
local choix_sorts_20397 = math.random(0, 1)
if choix_sorts_20397 == 0 then
pUnit:RegisterEvent('spell0_20397', 1, 1)
end
if choix_sorts_20397 == 1 then
pUnit:RegisterEvent('spell1_20397', 1, 1)
end
end

function mob20397_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20397', math.random(1500, 3000), 1)
end

function mob20397_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20397_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20397_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20397, 1, 'mob20397_Action')
RegisterUnitEvent(20397, 2, 'mob20397_Leave')
RegisterUnitEvent(20397, 3, 'mob20397_Kill')
RegisterUnitEvent(20397, 4, 'mob20397_Die')
